/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ar.com.wholeconsulting.pacc.gui.utils.treetable.modelos;

import ar.com.wholeconsulting.pacc.gui.utils.treetable.TreeTableNode;
import ar.com.wholeconsulting.pacc.model.Fabricante;
import ar.com.wholeconsulting.pacc.model.Modelo;

/**
 *
 * @author pable
 */
public class ModelosTreeTableNode extends TreeTableNode{

    public ModelosTreeTableNode(Fabricante fabricante) {
        super(fabricante.getNombre(),"",fabricante);
        for(Modelo model : fabricante.getModelos()){
            this.getChildren().add(new TreeTableNode(model.getNombre(),model.getDescripcion(),model));
        }
    }

}
